home *** CD-ROM | disk | FTP | other *** search
/ c't freeware shareware 2001 January / CT_SW0101.ISO / mac / software / office / text / texedit.sit / TE+ 4.1.1Dƒ / Englische Originaldokumentation / About the Speech Dictionary next >
Text File  |  2000-11-03  |  5KB  |  119 lines

  1.  
  2.                     About the Speech Dictionary
  3.  
  4. Does your Macintosh totally mangle your daughter’s name when reading it aloud?  Instead of spending time explaining to little Szchitt* why Mr. Mac can’t say her name right, why not just fix it?
  5.  
  6. The sample “Speech Dictionary” file is included to illustrate Tex-Edit’s ability to use a “word exception dictionary” to improve the quality of speech.
  7.  
  8. Show me how it works!
  9.  
  10. To illustrate, turn Speech ON, select the text below and choose “Read Selection” in the Sound menu:
  11.  
  12. When Wednesday finally gets here, I am going to take Felix to the vet, finish my report on the Roosevelt administration, watch the Redsox game, and get ready for the big Halloween party.
  13.  
  14. Now, turn Speech OFF, drag the “Speech Dictionary” file OUT of Tex-Edit’s folder, turn Speech back ON, and again choose “Read Selection.”  See the difference?  The boldface words have special dictionary pronunciations.
  15.  
  16. (Note: The word exception dictionary will only be used if it is named “Speech Dictionary” and resides in the same folder as Tex-Edit Plus.)
  17.  
  18. What’s going on here?
  19.  
  20. When you choose one of the “Read” commands in the Sound menu, Tex-Edit reads the text selection aloud.  Sometimes words are mispronounced.  The “Speech Dictionary” fixes this by overriding Speech Manager’s standard pronunciation rules with rules that you can make up yourself.
  21.  
  22. How do I create my own pronunciations?
  23.  
  24. Using a special tool, such as Simon Fraser’s DictionaryEdit program, you can add special pronunciation directions for any word.  Basically, you open the “Speech Dictionary” file and then enter the word whose pronunciation you wish to override followed by a phonetic representation of the correct pronunciation.  Get DictionaryEdit at:
  25.     <http://www.nearside.com/trans-tex/software/dictionary-edit1.3.sit.hqx>
  26.  
  27. It is also possible to use a resource creator such as Rez or Resorcerer.
  28.  
  29. Warning: technical info ahead!
  30.  
  31. I have enclosed the following information for programmers and for those who don’t wish to use DictionaryEdit for some reason.
  32.  
  33. The “Speech Dictionary” file consists of a single resource of type “dict”.  Here is the Rez source code for the sample included with Tex-Edit Plus.  The interesting portions are in bold:
  34.  
  35. resource 'dict' ( 128, "sampleDictResource" )
  36. {
  37.     smRoman, langEnglish, verUS, secondCount,
  38.     {
  39.         pron, { tx, "ROOSEVELT",    ph, "_1EHf_d1IY_1AAr" },
  40.         pron, { tx, "CHELSEA",    ph, "_C1EHls2IY" },
  41.         pron, { tx, "AMHERST",    ph, "_2UXmAXrst" },
  42.         pron, { tx, "REDSOX",    ph, "_r1EHd_s1AAks" },
  43.         pron, { tx, "HALLOWEEN",    ph, "_h1AAl2OW_w1IYn" },
  44.         pron, { tx, "FELIX",        ph, "_f1IYl2IHks_D2UX_k1AEt" },
  45.         pron, { tx, "WEDNESDAY",    ph, "_m1IHd_w1IYk" },
  46.     },
  47. };
  48.  
  49. Note that “secondCount” should be replaced with the current time (in Mac format).  Each word is paired up with its phonetic pronunciation.  No spaces are allowed within the words.
  50.  
  51. Here is the phonetic symbol dictionary.  See how these symbols are combined to create the phonetic representations above (from Inside Macintosh: Sound, Apple Computer):
  52.  
  53. Symbol    Example
  54. %        silence
  55. @        inhalation
  56. AE        bat
  57. EY        bait
  58. AO        caught
  59. AX        about
  60. IY        beet
  61. EH        bet
  62. IH        bit
  63. AY        bite
  64. IX        roses
  65. AA        cot
  66. UW        boot
  67. UH        book
  68. UX        bud
  69. OW        boat
  70. AW        bout
  71. OY        boy
  72. b        bin
  73. C        chin
  74. d        din
  75. D        them
  76. f        fin
  77. g        gain
  78. h        hat
  79. J        jump
  80. k        kin
  81. l        limb
  82. m        mat
  83. n        nat
  84. N        tang
  85. p        pin
  86. r        ran
  87. s        sin
  88. S        shin
  89. t        tin
  90. T        thin
  91. v        van
  92. w        wet
  93. y        yet
  94. z        zen
  95. Z        measure
  96.  
  97. Here are prosodic control symbols.  Note how the prosodic controls are combined with the phonetic symbols above (from Inside Macintosh: Sound, Apple Computer):
  98.  
  99. Type                Symbol    Symbol name    Description or illustration of effect
  100. Lexical stress:                            Marks stress within a word (optional)
  101.     Primary stress    1                    AEnt2IHsIXp1EYSAXn   (“anticipation”)
  102.     Secondary stress    2
  103. Syllable breaks:                            Marks syllable breaks within a word (optional)
  104.     Syllable mark        =        (equal)            AEn=t2IH=sIX=p1EY=SAXn (“an-ti-ci-pa-tion”)
  105. Word prominence:                            Placed before the affected word
  106.     Destressed        ~        (asciitilde)        Used for words with minimal informational content
  107.     Normal stress    _        (underscore)        Used for information-bearing words
  108.     Emphatic stress    +        (plus)            Used for words requiring special emphasis
  109. Prosodic:                                Placed before the affected phoneme
  110.     Pitch rise        /        (slash)            Pitch will rise on the following phoneme
  111.     Pitch fall        \        (backslash)        Pitch will fall on the following phoneme
  112.     Lengthen phoneme    >        (greater)        Lengthens the duration of the following phoneme
  113.     Shorten phoneme    <        (less)            Shortens the duration of the following phoneme
  114.  
  115. Have fun.
  116.  
  117. * I know of no person by this name, living or dead.  I just combined random characters to illustrate a point.  If this is your name, then I humbly apologize.  If this is your child’s name, then I think you should be turned over to Child Protective Services.  ;-)
  118.  
  119. (Document Revised 11/3/00)